package com.hb0730.boot.admin.modules.sci.model.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb0730.boot.admin.config.Excel.LocalDateTimeConverter;
import lombok.Data;
import lombok.ToString;

import java.time.LocalDate;
import java.time.LocalDateTime;

@ToString
@TableName(value ="sci_msg")
@Data
public class SciMessage {
    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 项目id
     */
    private String sciId;

    /**
     * 项目id
     */
    private String username;
    /**
     * 项目分类
     */
    private String type;

    /**
     * 项目状态
     */
    private Integer status;

    /**
     * 意见
     */
    private String proposal;
    /**
     * 院系部门
     */
    private String department;

    /**
     * 更新者
     */
    private String modifiedBy;
    /**
     * 创建者
     */
    private String createdBy;

    /**
     * 更新时间
     */

    @ExcelProperty(value = "更新时间",converter = LocalDateTimeConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modified;
    /**
     * 更新时间
     */

    @ExcelProperty(value = "创建时间",converter = LocalDateTimeConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime created;

}
